Project

General

Profile

« Previous | Next » 

Revision 609

Added by bojilova about 24 years ago

fixed typo

View differences:

src/edu/ucsb/nceas/metacat/AccessControlList.java
362 362
        ResultSet rs = pstmt.getResultSet();
363 363
        boolean hasRow = rs.next();
364 364
        pstmt.close();
365
        conn.close();
365 366
        if (hasRow) {
366 367
          return true;
367 368
        }
......
389 390
        ResultSet rs = pstmt.getResultSet();
390 391
        boolean hasRow = rs.next();
391 392
        pstmt.close();
393
        conn.close();
392 394
        if (hasRow) {
393 395
          return true;
394 396
        }
......
433 435
              decreaseNumberOfAccess(accessValue,principal,resourceId,"denied");
434 436
            }
435 437
            pstmt.close();
438
            conn.close();
436 439
            return false;
437 440
          }
438 441
          hasRows = rs.next();
......
457 460
              decreaseNumberOfAccess(accessValue,principal,resourceId,"allowed");
458 461
            }
459 462
            pstmt.close();
463
            conn.close();
460 464
            return true;
461 465
          }
462 466
          hasRows = rs.next();
......
469 473
        //
470 474
      
471 475
        pstmt.close();
476
        conn.close();
472 477
        return false;
473 478
  
474 479
      } catch (SQLException e) {

Also available in: Unified diff